//
//  MusicDownloadTask.h
//  DownLoadDemo
//
//  Created by lanou3g on 16/4/27.
//  Copyright © 2016年 liu. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^ProgressBlock)(float progress);
typedef void(^ComplateBlock)(NSString *path);

@interface MusicDownloadTask : NSObject

/// URL 参数
- (void)downloadUrl:(NSURL *)url progresBlock:(ProgressBlock)proBlock complate:(ComplateBlock)comBlock;

/// 开始
- (void)resume;
/// 暂停
- (void)suspend;

/// 修改Block
- (void)setProgressBlock:(ProgressBlock)proBlock;
- (void)setComplateBlock:(ComplateBlock)comBlock;

@end
